package com.revenant.driver.adapter.Driver;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.revenant.driver.R;
import com.revenant.driver.bean.AreaShowBean;
import com.revenant.driver.bean.Driver.EmptyCarManageBean;

/**
 * @ProjectName: Shipper
 * @Package: com.revenant.shipper.adapter
 * @ClassName: MineBigItemAdapter
 * @Description: java类作用描述
 * @Author: revenant
 * @CreateDate: 2019-12-30 14:18
 * @UpdateUser: 更新者
 * @UpdateDate: 2019-12-30 14:18
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class EmptyCarManageItemAdapter extends BaseQuickAdapter<EmptyCarManageBean.DataBean.ResultBean, BaseViewHolder> {

    public EmptyCarManageItemAdapter() {
        super(R.layout.item_car_manage);
    }

    @Override
    protected void convert(BaseViewHolder helper, EmptyCarManageBean.DataBean.ResultBean item) {
        helper.setText(R.id.left, item.getLoading());
        helper.setText(R.id.right, item.getUnloading());
        helper.setText(R.id.type, item.getCarInfo());
        helper.setText(R.id.carno, item.getCarNo());
        helper.addOnClickListener(R.id.delete_goods);

    }
}
